package team.niit.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @Author: HAPPY
 * @Project_name: stu_select_course
 * @Package_name: team.niit.bean
 * @Date: 2021/10/25 23:53
 * explain: 学生实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Entity(name = "student")
public class StudentEntity {
    /**
     * 编号
     */
    @Id
    private String id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String gender;

    /**
     * 生日
     */
    private String birth;

    /**
     * 学校
     */
    private String school;

    /**
     * 专业
     */
    private String major;

    /**
     * 班级
     */
    private String classes;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String phone;

    public StudentEntity(String name, String gender, String birth, String school, String major, String classes, String password, String phone) {
        this.name = name;
        this.gender = gender;
        this.birth = birth;
        this.school = school;
        this.major = major;
        this.classes = classes;
        this.password = password;
        this.phone = phone;
    }
}
